-- GENERATED SPELL FOR [Razormane Seer] --


function spell0_3458(pUnit, Event) --@Healing Ward,Self--
if charge_disp ~= 'na' then
pUnit:FullCastSpellOnTarget(6274,pUnit)
local charge_disp = 'na'
end
pUnit:RegisterEvent('Sorts_3458', 1, 1)
end

function spell1_3458(pUnit, Event) --@Searing Totem,Self--
pUnit:FullCastSpellOnTarget(6363,pUnit)
pUnit:RegisterEvent('Sorts_3458', 35314, 1)
end

function Sorts_3458(pUnit, Event)
local choix_sorts_3458 = math.random(0, 1)
if choix_sorts_3458 == 0 then
pUnit:RegisterEvent('spell0_3458', 1, 1)
end
if choix_sorts_3458 == 1 then
pUnit:RegisterEvent('spell1_3458', 1, 1)
end
end

function mob3458_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_3458', math.random(1500, 3000), 1)
end

function mob3458_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3458_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3458_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(3458, 1, 'mob3458_Action')
RegisterUnitEvent(3458, 2, 'mob3458_Leave')
RegisterUnitEvent(3458, 3, 'mob3458_Kill')
RegisterUnitEvent(3458, 4, 'mob3458_Die')
